package com.chezhujie.www.controller;

import com.chezhujie.www.domain.Czjorder;
import com.chezhujie.www.domain.Czjorderdetail;
import com.chezhujie.www.domain.Czjorderdistribution;
import com.xy.user.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/6/2.
 */
@Controller
@RequestMapping("/third")
public class ThirdController extends BaseController {


    @RequestMapping("/jqcbOrderAdd.json")
    public void commentsAdd(@RequestParam(required = true)String orderId, Czjorder czjorder, Czjorderdetail czjorderdetail,
                            Czjorderdistribution czjorderdistribution,
                            HttpServletRequest req, HttpServletResponse resp,
                            ModelMap model) throws Exception {

//        private String id;
//        @Column(describe = "订单编号",length = 25,inputType = "text")
//        private String orderCode;
//        @Column(describe = "用户",length = 11,inputType = "select",inputCode = "int")
//        private Integer userinfoId;
//        @Column(describe = "商家",length = 19,inputType = "select",inputCode = "str")
//        private String businessId;
//        @Column(describe = "支付方式",length = 1,inputType = "hidden")
//        private Integer paymentType;
//        @Column(describe = "订单类别",length = 1,inputType = "select",inputCode = "ordertype")
//        private Integer orderType;
//        @Column(describe = "总金额",length = 11,precision = 2,inputType = "int")
//        private BigDecimal totalAmount;
//        @Column(describe = "订单状态",length = 19,inputType = "select",inputCode = "orderstatus")
//        private Integer status;
//        private Date createTime;
//        private String remark;
//        、、===========================
//        @Column(describe = "主键",length = 19,inputType = "hidden")
//        private String id;
//        @Column(describe = "订单编号",length = 25,inputType = "text")
//        private String orderCode;
//        @Column(describe = "商品",length = 19,inputType = "select",inputCode = "str")
//        private String commodityId;
//        @Column(describe = "数量",length = 11,inputType = "int")
//        private Integer amount;
//        @Column(describe = "价格",length = 11,precision = 2,inputType = "int")
//        private BigDecimal salePrice;
//        @Column(describe = "创建时间",inputType = "date")
//        private Date createTime;
//        ==========================
//        @Column(describe = "订单编号",length = 25,inputType = "text")
//        private String orderCode;
//        @Column(describe = "收货人",length = 19,inputType = "text")
//        private String recipients;
//        @Column(describe = "收货地址",length = 255,inputType = "text")
//        private String address;
//        @Column(describe = "手机号",length = 50,inputType = "text")
//        private String phoneNo;
//        @Column(describe = "邮政编号",length = 19,inputType = "text")
//        private String postalCode;
//        @Column(describe = "邮箱",length = 50,inputType = "text")
//        private String email;
//        @Column(describe = "买家留言",length = 50,inputType = "text")
//        private String message;
//        @Column(describe = "创建时间",inputType = "date")
//        private Date createTime;
        String orderCode;
        Integer userinfoId;
        String businessId;
        Integer orderType;
        BigDecimal totalAmount;//
        Integer status;//订单状态
        Date createTime;//下单时间
        Integer amount;//总金额
        Integer paymentType;//1是集群车宝



    }
}
